import { defineStore } from 'pinia'
import { ref } from 'vue'

export const useTradeApplicationStore = defineStore('tradeApplication', () => {
    // 交易申请ID
    const tradeApplicationId = ref(null)

    // 设置交易申请ID
    function setTradeApplicationId(id) {
        tradeApplicationId.value = id
    }

    // 清空交易申请ID
    function clearTradeApplicationId() {
        tradeApplicationId.value = null
    }

    return {
        tradeApplicationId,
        setTradeApplicationId,
        clearTradeApplicationId
    }
})